<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@taglib uri="/WEB-INF/ft.tld" prefix="ft" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<c:if test="${user!=null}">
欢迎您：${user.username},您上次登陆的时间是:${ft:dateFormat(user.lastlogintime,"YYYY年MM月dd日 HH:mm:ss")},您上次登录的ip地址是:${user.lastloginip}     
</c:if>  
<c:if test="${user==null}">
您还没有登陆，请<a href="${base}/login.do">登录</a>
</c:if>   
<c:if test="${user!=null}">     
<a href="${base}/user_main.do?method=logout">退出登录</a>
</c:if>
<hr>
<a href="${base}/release.do">写博客</a>
<hr>
博客列表
<hr>
${a.title}<br>
${a.author}<br>
${ft:dateFormat(a.release_datetime,"YYYY年MM月dd日 HH:mm:ss")}<br>
${a.content}<br>
</body>
</html>